package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户操作记录表
 * </p>
 *
 * @author Shane
 * @since 2019-10-06
 */
@TableName("user_operation_log")
public class UserOperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 类型，0-普通用户  1-主播
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 操作类型id
	 */
	@TableField(value="operation_id")
	private Integer operationId;

	@TableField(value = "to_user_id")
	private Integer toUserId;

	@TableField(value = "relation_id")
	private Integer relationId;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public UserOperationLog() {
	}

	public UserOperationLog(Integer userId, Integer type, Integer operationId) {
		this.userId = userId;
		this.type = type;
		this.operationId = operationId;
	}

	public UserOperationLog(Integer userId, Integer type, Integer operationId, Integer toUserId, Integer relationId) {
		this.userId = userId;
		this.type = type;
		this.operationId = operationId;
		this.toUserId = toUserId;
		this.relationId = relationId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getOperationId() {
		return operationId;
	}

	public void setOperationId(Integer operationId) {
		this.operationId = operationId;
	}

	public Integer getToUserId() {
		return toUserId;
	}

	public void setToUserId(Integer toUserId) {
		this.toUserId = toUserId;
	}

	public Integer getRelationId() {
		return relationId;
	}

	public void setRelationId(Integer relationId) {
		this.relationId = relationId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
